# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python-aiocmd
_pkgname=aiocmd
pkgver=0.1.5
pkgrel=7
pkgdesc='Asyncio-based automatic CLI creation tool using prompt-toolkit.'
arch=('any')
url='https://pypi.org/project/aiocmd/#files'
license=('MIT')
depends=('python' 'python-prompt_toolkit')
makedepends=('python-setuptools')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('6893dd89671c83f317078fbf8440777adf59ae4628c2688e2ee34a5363479a6580538fd1f9a4184c0cbd2568b676e8a4126e0398536426eaa825a990c1f0949c')

build() {
  cd "$_pkgname-$pkgver"

  python setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}

